package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.WeekdaysExample.E_HOLIDAY;
import static org.jsola.hr.example.WeekdaysExample.E_HOLIDAY_DATE;
import static org.jsola.hr.example.WeekdaysExample.E_STATUS;
import static org.jsola.hr.example.WeekdaysExample.E_WEEKDAY;
import static org.jsola.hr.example.WeekdaysExample.M_HOLIDAY_MAX;
import static org.jsola.hr.example.WeekdaysExample.M_WEEKDAY_MAX;
import static org.jsola.hr.example.WeekdaysExample.N_HOLIDAY;
import static org.jsola.hr.example.WeekdaysExample.N_HOLIDAY_DATE;
import static org.jsola.hr.example.WeekdaysExample.N_STATUS;
import static org.jsola.hr.example.WeekdaysExample.N_WEEKDAY;

/**
 * 工作日历表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【工作日历表】的参数")
@Data
public class WeekdaysUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_HOLIDAY_DATE, example = E_HOLIDAY_DATE)
    private Date holidayDate;

    @ApiModelProperty(notes = N_WEEKDAY, example = E_WEEKDAY)
    @Length(max = 32, message = M_WEEKDAY_MAX)
    private String weekday;

    @ApiModelProperty(notes = N_HOLIDAY, example = E_HOLIDAY)
    @Length(max = 32, message = M_HOLIDAY_MAX)
    private String holiday;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    private Integer status;


}

